<template>
  <view class="container">
    <rich-text :nodes="content"></rich-text>
  </view>
</template>

<script>
export default {
  data() {
    return {
      content: ''
    };
  },
  onLoad() {
    this.getxieyi();
  },
  methods: {
    // 获取协议内容
    async getxieyi() {
      const res = await this.http('/index/article', {
        type: 1
      });
      console.log('关于我们', res);
      this.content = res.data.conten;
    }
  }
};
</script>

<style lang="scss">
.container {
  box-sizing: border-box;
  padding: 16rpx 24rpx;
}
</style>
